package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_Question", catalog="Id")
public class TpQuestion extends BaseEntity<TpQuestion> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="int")
	private Integer id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="int")
	private Integer guid;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getGuid() {
		return guid;
	}
	public void setGuid(Integer guid) {
		this.guid = guid;
	}
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="int")
	private Integer type;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="int")
	private Integer state;
	@YsField(nameDataBase="Title", nameJava="title", typeDataBase="varchar")
	private String title;
	@YsField(nameDataBase="Result", nameJava="result", typeDataBase="varchar")
	private String result;
	@YsField(nameDataBase="ResultTime", nameJava="resultTime", typeDataBase="datetime")
	private Date resultTime;
	@YsField(nameDataBase="CreateUserId", nameJava="createUserId", typeDataBase="varchar")
	private String createUserId;
	@YsField(nameDataBase="CreateCodeCompany", nameJava="createCodeCompany", typeDataBase="varchar")
	private String createCodeCompany;
	@YsField(nameDataBase="CidName", nameJava="cidName", typeDataBase="varchar")
	private String cidName;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="int")
	private Integer userId;
	@YsField(nameDataBase="DeptName", nameJava="deptName", typeDataBase="varchar")
	private String deptName;
	@YsField(nameDataBase="Nameyyr", nameJava="nameyyr", typeDataBase="varchar")
	private String nameyyr;
	@YsField(nameDataBase="Deptyyr", nameJava="deptyyr", typeDataBase="varchar")
	private String deptyyr;
	@YsField(nameDataBase="VGsBmsj", nameJava="vGsBmsj", typeDataBase="varchar")
	private String vGsBmsj;
	@YsField(nameDataBase="VGsJcsj", nameJava="vGsJcsj", typeDataBase="varchar")
	private String vGsJcsj;
	@YsField(nameDataBase="Namesj", nameJava="namesj", typeDataBase="varchar")
	private String namesj;
	@YsField(nameDataBase="Codesj", nameJava="codesj", typeDataBase="varchar")
	private String codesj;
	@YsField(nameDataBase="Deptsj", nameJava="deptsj", typeDataBase="int")
	private String deptsj;
	

	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;

	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="varchar")
	private Date updateTime;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	
	
	public String getCode() {
		return code;
	}
	public TpQuestion setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getType() {
		return type;
	}
	public TpQuestion setType(Integer type) {
		this.type = type;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public TpQuestion setState(Integer state) {
		this.state = state;
		return this;
	}
	public String getTitle() {
		return title;
	}
	public TpQuestion setTitle(String title) {
		this.title = title;
		return this;
	}
	public String getResult() {
		return result;
	}
	public TpQuestion setResult(String result) {
		this.result = result;
		return this;
	}
	public Date getResultTime() {
		return resultTime;
	}
	public TpQuestion setResultTime(Date resultTime) {
		this.resultTime = resultTime;
		return this;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public TpQuestion setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
		return this;
	}
	public String getCreateCodeCompany() {
		return createCodeCompany;
	}
	public TpQuestion setCreateCodeCompany(String createCodeCompany) {
		this.createCodeCompany = createCodeCompany;
		return this;
	}
	public String getCidName() {
		return cidName;
	}
	public TpQuestion setCidName(String cidName) {
		this.cidName = cidName;
		return this;
	}
	
	
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public TpQuestion setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public TpQuestion setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public TpQuestion setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public String getNameyyr() {
		return nameyyr;
	}
	public void setNameyyr(String nameyyr) {
		this.nameyyr = nameyyr;
	}
	public String getDeptyyr() {
		return deptyyr;
	}
	public void setDeptyyr(String deptyyr) {
		this.deptyyr = deptyyr;
	}
	public String getvGsBmsj() {
		return vGsBmsj;
	}
	public void setvGsBmsj(String vGsBmsj) {
		this.vGsBmsj = vGsBmsj;
	}
	public String getvGsJcsj() {
		return vGsJcsj;
	}
	public void setvGsJcsj(String vGsJcsj) {
		this.vGsJcsj = vGsJcsj;
	}
	public String getNamesj() {
		return namesj;
	}
	public void setNamesj(String namesj) {
		this.namesj = namesj;
	}
	public String getCodesj() {
		return codesj;
	}
	public void setCodesj(String codesj) {
		this.codesj = codesj;
	}
	public String getDeptsj() {
		return deptsj;
	}
	public void setDeptsj(String deptsj) {
		this.deptsj = deptsj;
	}
	public Integer getStatus() {
		return status;
	}
	public TpQuestion setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpQuestion setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpQuestion setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpQuestion tpQuestion(
		String code,
		Integer type,
		Integer state,
		String title,
		String result,
		Date resultTime,
		String createUserId,
		String createCodeCompany,
		String cidName,
		Integer userId,
		String vGsBm,
		String vGsJc,
		String userName,
		Integer status
		
		
			) {
		TpQuestion entity = new TpQuestion();
		entity.setCode(code);
		entity.setType(type);
		entity.setState(state);
		entity.setTitle(title);
		entity.setResult(result);
		entity.setResultTime(resultTime);
		entity.setCreateUserId(createUserId);
		entity.setCreateCodeCompany(createCodeCompany);
		entity.setCidName(cidName);
		entity.setUserId(userId);
		
		entity.setVGsBm(vGsBm);
		entity.setVGsJc(vGsJc);
		entity.setUserName(userName);
		
		entity.setStatus(status);
		return entity;
	}
	public String getvGsBm() {
		return vGsBm;
	}
	public void setvGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
	}
	public String getvGsJc() {
		return vGsJc;
	}
	public void setvGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
	}
}